function [ comb ] = possibleCombinationsOfLength(preppend, append)
    comb = [];
    for i=1:length(preppend)
        for j=1:length(append)
            if ~in_array(preppend(i, :), append(j))
                aux = [preppend(i,:) append(j)];
                if ~isempty(comb)
                    comb = [comb; aux];
                else
                    comb = [aux];
                end
            end
        end
    end
end

